<template>
  <div id="bottomRight">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-area" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class=" text mx-2">汽车排行榜</span>
          <div class="decoration2">
            <dv-decoration-2 :reverse="true" style="width:5px;height:6rem;" />
          </div>
        </div>
      </div>
      <div>
        <div class="row-list">
          <ul class="car-rank" style="width:100%;height: 420px;overflow: auto">
            <li style="font-size: 23px">
              <div>销售排名</div>
              <div>图片</div>
                <div>汽车名称</div>
              <div>销售价格</div>
                 <div>油耗类型</div>

              <div>销售趋势</div>
                      <div>上市时间</div>

              <div></div>
            </li>
            <li style="" v-for="car in carData" v-bind:key="car.rank">
               <div>{{ car.rank }}</div>
              <div class="listimg"><img :src="car.carImg " style="height: 100%;width: 100%"></div>
              <div class="listinfo">

                <p>{{car.carName}}/{{car.brand}}</p>
              </div>
              <div>{{car.price}}/万</div>

              <div>{{car.energyType}}</div>
              <div>{{car.saleVolume}}辆</div>
                <div>{{car.marketTime}}</div>
              <div></div>

            </li>
          </ul>

        </div>
<!--        <BottomRightChart />-->
      </div>
    </div>
  </div>
</template>

<script>
// import BottomRightChart from "@/components/echart/bottom/bottomRightChart";
export default {
  data(){
     return{
       carData:''
     }

  },
  components: {
    // BottomRightChart
  },
  async mounted(){
     const res=await this.$http.get("myApp/bottomRight")
    // console.log(res)
this.carData=res.data.carData
    console.log(this.carData)

  }
};
</script>

<style lang="scss" class>
$box-height: 520px;
$box-width: 100%;
#bottomRight {
  padding: 14px 16px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
     .row-list{
       list-style: none;
       .car-rank::-webkit-scrollbar{
         display: none;
       }
       .car-rank li{
         display: grid;
         -ms-grid-columns: 100px 150px 180px 120px 120px 110px 100px;
         grid-template-columns: 100px 150px 180px 120px 120px 110px 100px;
         cursor: pointer;
         margin-left: 23px;
         text-align: center;
         line-height: 30px;
       }


}

  }
  .text {
    color: #c3cbde;
  }
  //下滑线动态
  .decoration2 {
    position: absolute;
    right: 0.125rem;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }

}

</style>